package xyz.jcat.security;

import org.springframework.security.authentication.AbstractAuthenticationToken;

public class UserAuthenticationToken extends AbstractAuthenticationToken {

    private UserAuthentication userAuthentication;

    public UserAuthenticationToken(UserAuthentication userAuthentication) {
        super(userAuthentication.getRoles());
        this.userAuthentication = userAuthentication;
    }

    public UserAuthentication getUserAuthentication() {
        return userAuthentication;
    }

    public void setUserAuthentication(UserAuthentication userAuthentication) {
        this.userAuthentication = userAuthentication;
    }

    @Override
    public Object getCredentials() {
        return null;
    }

    @Override
    public Object getPrincipal() {
        return null;
    }
}
